using System;
using System.Windows.Forms;

// 测试buttonTheme是否正常初始化的简单控制台应用
class TestButtonTheme
{
    [STAThread]
    static void Main()
    {
        try
        {
            // 创建应用程序的主窗体实例
            MouseKeyboardOperationSimulator.MainForm mainForm = new MouseKeyboardOperationSimulator.MainForm();
            
            // 检查buttonTheme是否已正确初始化
            if (mainForm.buttonTheme != null)
            {
                Console.WriteLine("Success: buttonTheme has been properly initialized.");
                Console.WriteLine($"buttonTheme Text: {mainForm.buttonTheme.Text}");
                Console.WriteLine($"buttonTheme BackColor: {mainForm.buttonTheme.BackColor}");
                Console.WriteLine($"buttonTheme Location: {mainForm.buttonTheme.Location}");
                Console.WriteLine($"buttonTheme Size: {mainForm.buttonTheme.Size}");
            }
            else
            {
                Console.WriteLine("Error: buttonTheme is null and has not been properly initialized.");
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Exception occurred: {ex.Message}");
            Console.WriteLine($"Stack trace: {ex.StackTrace}");
        }
        
        Console.WriteLine("Press any key to exit...");
        Console.ReadKey();
    }
}